/**
 * 
 */
package cn.softTank.BpelModelImpl;

import org.dom4j.DocumentHelper;
import org.dom4j.Element;

import cn.softTank.BpelModel.To;

/**
 * @author Yuzone
 * 
 */
public class ToImpl implements To {

	private String literal;

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.softTank.BpelModel.To#getLiteral()
	 */
	@Override
	public String getLiteral() {
		return literal;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.softTank.BpelModel.To#setLiteral(java.lang.String)
	 */
	@Override
	public void setLiteral(String value) {
		this.literal = value;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.softTank.BpelModel.XmlAdapt#toElement()
	 */
	@Override
	public Element toElement() {
		Element to = DocumentHelper.createElement("to");
		to.addText(literal);

		return to;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.softTank.BpelModel.XmlAdapt#toXml()
	 */
	@Override
	public String toXml() {
		// TODO Auto-generated method stub
		return null;
	}

}
